@Override
            public void run() {
                PrintWriter out;
                try {
                    out = new PrintWriter(serverConn.getOutputStream());
                    out.write(query + "\n");
                    out.flush();
                } catch (SocketException e) {
                    System.err.println("SocketNotFoundException2: "
                            + e.getMessage());
                    serverCrashed();
                } catch (IOException e) {
                    e.printStackTrace();
                }

            }