Run some code when the process exits (supports async hooks and pm2 clustering)
Catch Node.js exit conditions, including errors and unhandled rejections.
Gracefully exit HTTP servers (Express/Koa/Fastify/etc), databases (Mongo/Mongoose), Bree job schedulers, and custom handlers.
Graceful process exit manager. allows waiting on multiple async services.
Do something before the program exits or when the program crashes!