Trivial: log error before sleeping