when-exit (npm): Execute a function right before the process, or the browser's tab, is about to exit.
Keywords: exit|catch|event|handle|hook|intercept|signal