code: function closeCommand(error) {
    // TODO: refactor into closeSuccessfulCommand and closeFailedCommand,
    // similar to tessel-2.js
    log.error(typeof error === 'string' ? error : error.stack);
    process.exit(1);
  }
docs: /* istanbul ignore next