Retry idempotent requests.

Would this be more clear as "sleep 3 unless i == @retry_limit-1?