Yeah, we only need to sleep if we aren't about to exit the loop. The test for the number of retries, which controls the error reporting, is only going to retry in the else case.