### Apache Airflow version

2.1.2

### Operating System

Centos docker image

### Versions of Apache Airflow Providers

_No response_

### Deployment

Other

### Deployment details

Self built docker image on kubernetes

### What happened

If airflow fails to launch a task (Kubernetes worker pod in my case), the task logs with a simple error message "task exited with return code 1".
This is problematic for developers working on developing platforms around airflow.

### What you expected to happen

Provide a proper error message when a task exits with return code 1 from standard task runner.

### How to reproduce

_No response_

### Anything else

_No response_

### Are you willing to submit PR?

- [X] Yes I am willing to submit a PR!

### Code of Conduct

- [X] I agree to follow this project's [Code of Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md)

airflow/task/task_runner/standard_task_runner.py
if self._rc is not None or not self.process:
            return self._rc
        try:
            self._rc = self.process.wait(timeout=timeout)
            self.process = None
        except psutil.TimeoutExpired:
            pass
        return self._rc
    def terminate(self):
        if self.process is None:
            return
        
        _ = self.return_code(timeout=0)
        if self.process and self.process.is_running():
            rcs = reap_process_group(self.process.pid, self.log)
            self._rc = rcs.get(self.process.pid)
        self.process = None
        if self._rc is None:
            
            self._rc = -9
        if self._rc == -9:
            
            
            self.log.error(
                'Job %s was killed before it finished (likely due to running out of memory)',
                self._task_instance.job_id,
            )