public void close() {
		ServerLogger.info(DataServer.class, "Closing data server for device ["
				+ device.getSerialNumber() + "]", null);
		for (CaptureThread thread : captureThreads) {
			thread.cancel();
		}
		for (CaptureThread thread : captureThreads) {
			try {
				thread.join();
			} catch (InterruptedException e) {
				// do nothing
			}
		}
		try {
			dataServer.close();
		} catch (IOException e) {
			ServerLogger.error(
					Server.class,
					"Error shutting down data server for device ["
							+ device.getSerialNumber() + "]", e);
		}

	}