public void shutdown() {
		// System.out.println("trying to shut down");
		synchronized (accptsoc) {
			if (!listen) {
				return;			
			}
			listen = false;
			try {
				accptsoc.close();
				this.closeall();
			} catch (IOException e) {
				System.err.println("ajserver: could not shutdown properly");
			}
		}
	}