Setting the sleep/retry even if an exception occurs.