frame.dispose();  System.out.println("client: died");
    public void die() {        connected = false;        pump = null;                // shut down threads & sockets        try {            socket.close();            in.close();            out.close();        } catch (IOException e) {            e.printStackTrace();        }                frame.setVisible(false);    }