Improve messages in case of system exit. This prints a better set of error messages in case someone calls `os._exit()` or in C code `exit()` is used.

Resolves #3486.

- [x] Add a [CHANGELOG](https://github.com/pyodide/pyodide/blob/main/docs/project/changelog.md) entry

(pyodide-build-cli)=

# pyodide-build CLI

```{note}
This CLI is being deprecated in favor of the {ref}`pyodide-cli` and will be removed in the future
```

```{eval-rst}
.. sphinx_argparse_cli::
   :module: pyodide_build.__main__
   :func: make_parser
   :prog: pyodide-build
   :title:
```

(pyodide-build-cli)=

# pyodide-build CLI

```{note}
This CLI is being deprecated in favor of the {ref}`pyodide-cli` and will be removed in the future
```

```{eval-rst}
.. sphinx_argparse_cli::
   :module: pyodide_build.__main__
   :func: make_parser
   :prog: pyodide-build
   :title:
```
