Usually useful for test frameworks or daemon runners or whatever:

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