Fixed exceptions in RpcClient.