code: public void close() {
          // Get the connection's protocol (TBinaryProtocol), and the protocol's transport
          // (TSocket) and close it.
          if (m_client != null) {
              TProtocol protocol = m_client.getInputProtocol();
              if (protocol != null) {
                  TTransport transport = protocol.getTransport();
                  if (transport != null) {
                      transport.close();
                  }
              }
          }
          m_client = null;
          m_bFailed = true;   // Prevent reusing this connection until reconnected
          m_bDBOpen = false;
      }
docs: Close the database connection. This object can be reused after the connection has
  been closed by calling {@link #open()} again.