Retry three times when downloads fail