retry when connection error happens