The client should only be reset if the operation succeeds, which is not always the case at this point.