Adding IsClosed method to RPCClient.

I've got some client code that needs to handle cases where the rpc connection goes away unexpectedly. This method makes it slightly easier.