Retry curl with exponential back off