Treat System.IO.IOException the same as System.Net.Sockets.SocketException for the purposes of marking the client as needing to reset its connection.