code: function setupHandlers() {
  
      function terminate(err) {
          util.log('Uncaught Error: ' + err.message);
          console.log(err.stack);
          if (proc.shutdownHook) {
              proc.shutdownHook(err, gracefulShutdown);
          }
      }
  
      process.on('uncaughtException', terminate);
  
      process.addListener('SIGINT', gracefulShutdown);
  
      process.addListener('SIGHUP', function () {
          util.log('RECIEVED SIGHUP signal, reloading log files...');
          reload(argv);
      });
  
  }
docs: Reopen logfiles on SIGHUP
  Exit on uncaught exceptions