code: function initExitHandling(server) {
      const onExit = () => {
          server.close(() => {
              logger.info('Manet server stopped');
              process.exit(0);
          });
      };
  
      process.on('SIGTERM', onExit);
      process.on('SIGINT', onExit);
  }
docs: /* Termination & Errors handling