Run some code when the process exits (supports async hooks and pm2 clustering)
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.
Catch Node.js exit conditions, including errors and unhandled rejections.
Do something before the program exits or when the program crashes!