Fix retry_limit usage so it reflects the number of retries, not the number of tries.