Catch exceptions during initialization of `password_providers`. Contributed by Nicolai Søborg.