public void close() {
		synchronized (soc) {
			if (!run)
				return;
			run = false;
			try {
				out.close();
				in.close();
				soc.close();
			} catch(IOException e) {
				System.err.println("ajclient.close: failed to close the connection");
			}
		}
	}