Retry several times operation if there was connection error.