Allow --help and --version to terminate main gracefully.