This invaluable interface allows stream classes to make a specified callback
when they are closed. It is used by wrapper stream classes such as TrackerOutputStream,
TrackerInputStream, RandomAccessRead and RandomAccessWrite.
Report that a stream has been closed.
Parameters: closedstream - The stream that is reporting its closure. exception: IOException - if an I/O error occurs.