if (standalone) { System.exit(0); } else { frame.setVisible(false); frame.dispose(); }
frame.setVisible(false); frame.dispose();
    public void die() {        connected = false;        pump = null;                // shut down threads & sockets        try {            socket.close();            in.close();            out.close();        } catch (java.lang.Exception ex) { ; }                if (standalone) {            System.exit(0);        } else {            frame.setVisible(false);            frame.dispose();        }    }