Reset the connection whenever an IO related error occurs.