You cannot simply assume all connections to stay open indefinitely because the other end may close them at will or a network outage may occur, forcing them to close as well.
When you try to read or write to a closed connection, you get an error
"use of closed network connection"
You should discard closed connections.