Fix emrun process exit code handler to use __ATEXIT__ instead of depending on Module.exit.