} else if (line.startsWith("stop ")) {
int s = Integer.parseInt(line.substring(5));
servers[s].stop();
Set hs = (Set) serverHandlers.get(servers[s]);
for (Iterator i = hs.iterator(); i.hasNext();) {
HandlerThread ht = (HandlerThread) i.next();
ht.close();
}
hs.clear();
System.out.println("Stopping server " + s);
} else if (line.equals("quit")) {
break;