I\'m following the guidance here (listening for SIGINT events) to gracefully shutdown my Windows-8-hosted node.js application in response to Ctrl+
SIGINT
Nowadays it just works on all platforms, including Windows.
The following code logs and then terminates properly on Windows 10:
process.on('SIGINT', () => { console.log("Terminating..."); process.exit(0); });