Related to https://github.com/apache/airflow/issues/9655

It would be nice to add a message when you get this error with some info, like 'This probably is because a lack of RAM' or something like that. 

I have found the code where the -9 is assigned but have no idea how to add a logging message. 

        self.process = None

        if self._rc is None:
            # Something else reaped it before we had a chance, so let's just "guess" at an error code.
            self._rc = -9
airflow/task/task_runner/standard_task_runner.py
except Exception:  
                return_code = 1
            finally:
                
                Sentry.flush()
                logging.shutdown()
                os._exit(return_code)  
    def return_code(self, timeout: int = 0) -> Optional[int]:
        
        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