if(log.isInfoEnabled()) log.info("packet_handler thread terminating");
if(log.isDebugEnabled()) log.debug("packet_handler thread terminating");
        public void run() {            Message msg;            while(outgoing_queue != null && outgoing_packet_handler != null) {                try {                    msg=(Message)outgoing_queue.remove();                    handleMessage(msg);                }                catch(QueueClosedException closed_ex) {                     if(log.isInfoEnabled()) log.info("packet_handler thread terminating");                    break;                }                catch(Throwable t) {                    if(log.isErrorEnabled()) log.error("exception sending packet: " + Util.printStackTrace(t));                }                msg=null; // let's give the poor garbage collector a hand...            }        }