code: function execute(req, res) {
    var save = undefined;
    if(req.args[0] !== undefined) {
      save = req.args[0] === true;
    }
    this.shutdown({save: save, code: 0}, process.exit);
  }
docs: Respond to the SHUTDOWN command.