public Session(Socket s) {
        soc = s;
        try {
            br = new BufferedReader(new InputStreamReader(soc.getInputStream()));
            pw = new PrintWriter(new BufferedOutputStream(soc.getOutputStream()), true);
        } catch (IOException e) {
            JOptionPane.showMessageDialog(null, e, "Error Message", 0);
        }
        
        if (runner == null) {
            runner = new Thread(this);
            runner.start();
        }
    }