First part of fix for bug #7159 - client rpc_transport doesn't cope with bad server...