Updated to catch ProviderException

Following the changes to the ProviderService API