Deal with EnvironmentErrors in handle_cli_exception too