public void exitWindow(){
//        this.dispose();
        try {
            this.removeKeyListener(kl);
            telnet.Disconnect();
        }catch(LowLinkException e){
            printLayerInfo(e.toString());
        }catch(TransportLayerException e){
            printLayerInfo(e.toString());
        }catch(CommunicationException e){
            printLayerInfo(e.toString());
        }
    }