public void shutdown() { try { running = false; for (WorkerThread t : threads) { t.stopThread(); } serverSocket.close(); } catch (Exception ignore) { } }