Terminates the CLI app with a code.
Future<void> exitWithCode(final int code) async { await _terminate(code: code); }