6-13 - Stream closed exception

Possible Reason

Stream is closed or the stream is closed while other threads are reading

Troubleshooting and resolution steps

Generally, the order in which the code closes the streams is reversed.