code: function exitHandler(options, err) {
          if (err) {
              log.error(err.stack);
          }
          if (options.exit) {
              process.exit();
          }
  
          if(network) {
              network.emit('state.'+id+'.service.offline');
          }
      }
docs: so the program will not close instantly