Added logging in case of exception within the provider