if(sender != null) { sender.interrupt(); sender=null;
if(senderThread != null) { senderThread.interrupt(); senderThread=null;
            void stop() {                if(sender != null) {                    sender.interrupt();                    sender=null;                    running=false;                }            }