process.on('SIGTERM', () => { console.log('The service is about to shut down!'); // Finish any outstanding requests, then... process.exit(0); });