Throws an exception if the client is disposed or not open.
protected void ThrowIfDisposedOrNotOpen()