void stopTest()
    {
        log("Shutting down....");
        if (m_responseQ != null)
        {
            if (m_responseQ != null)
            {
                log("Deactivating responseQ...");
                m_responseQ.deactivate();
                m_responseQ = null;
            }

            if (m_responseMessageDispatcher != null)
            {
                log("Response Dispatcher terminating...");
                m_responseMessageDispatcher.terminate();
                m_responseMessageDispatcher = null;
                log("Response Dispatcher terminated...");
            }
        }

        if (m_pool != null)
        {
            log("Destroying pool...");
            m_pool.destroy();
            m_pool = null;
        }
        if (m_consumer != null)
        {
            log("UnregisterClient...");
            m_consumer.unregisterClient(null);
        }

        if (m_loginHandle != null)
        {
            log("Dending logoff request");
            m_consumer.unregisterClient(m_loginHandle);
            m_loginHandle = null;
        }

        if (m_consumer != null)
        {
            log("OMMConsumer destroy...");
            m_consumer.destroy();
            m_consumer = null;
        }

        if (m_session != null)
        {
            log("Session release...");
            m_session.release();
            log("Shutdown completed!!!");
            m_session = null;
        }
    }