[Server] Shutdown cleanly on SIGINT and SIGTERM