Type Reason Java.IO.IOException in case of an IO problem on closing the underlying stream
Detects stream close and notifies the watcher. There's not much to detect since this is called by EofSensorInputStream.close(). The watcher will only be notified if this stream is closed for the first time and before EOF has been detected. This stream will be detached from the underlying stream to prevent multiple notifications to the watcher.