Always invalidate the watchdog timer when the stream is closed.