Adding IsClosed method to RPCClient.