Handle IOException('Connection reset by peer') as if it were a ClosedChannelException