Various Client Agent fixes

This fixes some more of the error-117 (MISSING_OBJECT) race conditions, and changes BAD_VERSION to take precedence over BAD_DCHASH.