Retry CURL 5 time if it fails

Sleeping 1 second before re-attempts