code: function done(context, err, message) {
      if (err) return fail(context, err);
      if (typeof message !== "undefined") shell.write(message);
      context.end();
  }
docs: finish command successfully or with an error