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

package:
  name: logbook
  version: 1.5.3
  top-level:
    - logbook
source:
  url: https://files.pythonhosted.org/packages/2f/d9/16ac346f7c0102835814cc9e5b684aaadea101560bb932a2403bd26b2320/Logbook-1.5.3.tar.gz
  sha256: 66f454ada0f56eae43066f604a222b09893f98c1adc18df169710761b8f32fe8

requirements:
  host:
    - distutils
    - setuptools

build:
  script: |
    python -c 'from Cython.Build.Cythonize import main; main(["./logbook/_speedups.pyx"])'

about:
  home: http://logbook.pocoo.org/
  PyPI: https://pypi.org/project/logbook
  summary: A logging replacement for Python
  license: BSD

package:
  name: logbook
  version: 1.5.3
  top-level:
    - logbook
source:
  url: https://files.pythonhosted.org/packages/2f/d9/16ac346f7c0102835814cc9e5b684aaadea101560bb932a2403bd26b2320/Logbook-1.5.3.tar.gz
  sha256: 66f454ada0f56eae43066f604a222b09893f98c1adc18df169710761b8f32fe8

requirements:
  host:
    - distutils
    - setuptools

build:
  script: |
    python -c 'from Cython.Build.Cythonize import main; main(["./logbook/_speedups.pyx"])'

about:
  home: http://logbook.pocoo.org/
  PyPI: https://pypi.org/project/logbook
  summary: A logging replacement for Python
  license: BSD
