ADD: handle_exception for provider implementations.