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

import chai from "chai";

it("should pass a basic truthy sanity test (node)", async () => {
  await chai.assert.isFulfilled(Promise.resolve());
});

it("should pass a basic sanity test in browser (puppeteer)", async () => {
  const title = await chai.assert.isFulfilled(page.title());
  chai.assert.isString(title);
  chai.assert.equal(title, "pyodide");
});

import chai from "chai";

it("should pass a basic truthy sanity test (node)", async () => {
  await chai.assert.isFulfilled(Promise.resolve());
});

it("should pass a basic sanity test in browser (puppeteer)", async () => {
  const title = await chai.assert.isFulfilled(page.title());
  chai.assert.isString(title);
  chai.assert.equal(title, "pyodide");
});
