Node.js exit hooks

atch a Node program from exiting with these events. Usually useful for test frameworks or daemon runners or whatever.

process.on('uncaughtException', err => { ... })
process.on('SIGHUP', ...)
process.on('exit', ...)
process.on('beforeExit', ...)