public static void closeSocketSilently(Socket s) {
        if (s != null) {
            try {
                s.close();
            } catch (IOException e2) {
                e2.printStackTrace();
            }
        }
    }