diff --git a/src/backend/index.js b/src/backend/index.js index 1b55ec1700..bbffd95edb 100644 --- a/src/backend/index.js +++ b/src/backend/index.js @@ -12,7 +12,7 @@ require('./web/server'); /** * Shutting Down Logic for most Server Shutdown Cases */ -process.on('exit', shutdown('exit')); +process.on('beforeExit', shutdown('beforeExit')); process.on('SIGTERM', shutdown('SIGTERM')); process.on('SIGINT', shutdown('SIGINT')); process.on('SIGQUIT', shutdown('SIGQUIT'));