process global, including the process.on() method for listening to OS signals.
To run code when the process exits, listen for these events:
"beforeExit": Bun emits this event when the event loop empties."exit": Bun emits this event when the event loop empties or whenprocess.exit()is called.
process.exit() from the listener.
See Utils for more utilities.