### 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
from airflow.sentry import Sentry
            signal.signal(signal.SIGINT, signal.SIG_DFL)
            signal.signal(signal.SIGTERM, signal.SIG_DFL)
            
            os.setpgid(0, 0)
            
            
            
            settings.engine.pool.dispose()
            settings.engine.dispose()
            parser = get_parser()
            
            args = parser.parse_args(self._command[1:])
            self.log.info('Running: %s', self._command)
            self.log.info('Job %s: Subtask %s', self._task_instance.job_id, self._task_instance.task_id)
            proc_title = "airflow task runner: {0.dag_id} {0.task_id} {0.execution_date_or_run_id}"
            if hasattr(args, "job_id"):
                proc_title += " {0.job_id}"
            setproctitle(proc_title.format(args))
            try:
                args.func(args, dag=self.dag)
                return_code = 0
            except Exception:
                return_code = 1
            finally:
                
                Sentry.flush()
                logging.shutdown()
                os._exit(return_code)
    def return_code(self, timeout: int = 0) -> Optional[int]: