public void close() {
        EIError.debugMsg("Closing");
        if (serverSocket != null) {
            try {
                sendData("goodbye");
                serverSocket.close();
            } catch (IOException e) {
                //oh well, ain't no thang
            }
        }
        keepRunning = false;
        serverSocket = null;
    }