closeConnection();
    public boolean writeBuffer(String buffer) throws PPTException {        try {            byte[] a = buffer.getBytes();            if (Debug.isSet("PPTClient")) System.out.print("PPTClient writing " + a.length + "  bytes ...");            _out.write(a, 0, a.length);            _out.flush();            if (Debug.isSet("PPTClient")) System.out.println(" done.");        }        catch (IOException e) {            String msg = "Failed to write to socket\n";            msg += e.getMessage();            closeConnection();            throw new PPTException(msg, e);        }        return true;    }