Added isConnected() method to client to work around disconnect issue with test suite.