Please check if `logDelay` was successfully created before using it.

I.e. `if (!logDelay.good ()) { /* handle error */ }`