The current stream is closed Stream is closed or another thread is reading while the stream is closing.
Stream is closed
Typically, this occurs due to the incorrect order in which the code closes the stream.