Make the fix in commit c29dca4cf less fragile against future code changes.

We should hard return after detecting that the client has disconnected.
Doing *anything* on a disconnected client object is disallowed.