handle when provider failed