diff --git a/app.js b/app.js index b677d3f29..191d55bad 100755 --- a/app.js +++ b/app.js @@ -43,5 +43,13 @@ server.start(function (err) { var NOOP_CALLBACK = function () { }; -process.on('SIGINT', function () { server.stop(NOOP_CALLBACK); }); -process.on('SIGTERM', function () { server.stop(NOOP_CALLBACK); }); +process.on('SIGINT', function () { + server.stop(NOOP_CALLBACK); + setTimeout(process.exit.bind(process), 3000); +}); + +process.on('SIGTERM', function () { + server.stop(NOOP_CALLBACK); + setTimeout(process.exit.bind(process), 3000); +}); +