Terminates the CLI app with errors.
Future<void> exitWithError(final Object error) async { hasErrors = true; await _terminate(error: error, showStacktrace: false); }