[client] manually call _reset_attributes on connection failure