if(tmp != null) { try { tmp.join(MAX_JOIN_TIMEOUT); } catch(InterruptedException e) { } if(tmp.isAlive()) { if(log.isWarnEnabled()) log.warn("stopped receiver thread, but thread (" + tmp + ") is still alive !"); } }
       void destroy() {           closeSocket(); // should terminate handler as well           sender.stop();           receiverThread=null;       }