server.setSocketTimeout(5000);
exitThread exitT = new exitThread(server);
exitT.start();
try {
server.setThreadPoolSize(5, maxThreads);
server.serve(vns.port);
} catch (Throwable e) {
Debug.reportException(e);
} finally {
Debug.p("Exiting.");
System.exit(0);