title: What is the default behaviour of Node.js on receiving SIGTERM?
body: <p>I've been reading documentation and it's not explicitly stated whether the Node.js process immediately exits or not if no signal handler is registered. For example, are pending tasks in the <a href="https://nodejs.org/en/docs/guides/event-loop-timers-and-nexttick/" rel="nofollow noreferrer">poll queue</a> executed or is everything dropped? Does the programmer always have to handle graceful shutdown explicitly by keeping track of all pending promises?</p>