channelStatusRunnable.shouldRun = false;
if (channelStatusRunnable != null) { channelStatusRunnable.shouldRun = false; }
    public void destroy() {        // Revert user presences to what it was before the phone call and send a hang_up        // message to the user        CallSessionFactory callSessionFactory = CallSessionFactory.getCallSessionFactory();        for (String username : UserPresenceUtil.getUsernames()) {            for (CallSession session : callSessionFactory.getUserCallSessions(username)) {                sendHangupMessage(session.getId(), AsteriskUtil.getDevice(session.getChannel()), username);            }            restoreUserPresence(username);        }        channelStatusRunnable.shouldRun = false;        Log.debug("Shutting down Manager connection");        try {            con.logoff();        }        catch (Throwable e) {            // Make sure we catch all exceptions show we can Log anything that might be            // going on            Log.error(e.getMessage(), e);            ComponentManagerFactory.getComponentManager().getLog().error(e);        }    }