Fix for a socket read exception that can get propagated to exception listeners on close of the connection.