Write a message as soon as a timeout is detected.