Adding automatic retries of failed curl rewinds