public void close()
	{
		try {
			//
			for(Device d : devices)
				d.close();
			//
			pool.shutdownNow();
			//
			running=false;
			server.close();
			//
			device_monitor.interrupt();
			device_monitor.join();
		} catch (IOException e) {
			e.printStackTrace();
		} catch (InterruptedException e) {
			e.printStackTrace();
		}
	}