CSHARP-717: Fix regression where reading from a socket that has been closed by the server is now hanging instead of throwing an EndOfStreamException.