Retry downloads up to 3 times.