private static boolean send(String command) {
		try (Socket client = new Socket();) {
			client.setSoTimeout(SOCKET_TIMEOUT);
			SocketAddress address = new InetSocketAddress(InetAddress.getByName("localhost"), DaemonEventServer.PORT);
			client.connect(address, SOCKET_TIMEOUT);

			PrintStream out = new PrintStream(client.getOutputStream());
			out.println(command);

			Reader in = new InputStreamReader(client.getInputStream());
			String result = readChars(in);

			client.close();

			if (result.equals("OK")) {
				return true;
			} else if (result.equals("ER")) {
				return false;
			} else {
				error("Received unknown answer: " + result);
				return false;
			}
		} catch (IOException e) {
			e.printStackTrace();
			error("Could not communicate with daemon.");
			return false;
		}
	}