protected String readStream() throws Exception {
		while (!reader.ready()) {
			Thread.sleep(50);
		}
		String out = reader.readLine();

		for (int i = 0; i < error.length; i++) {
			if (out.equals(error[i])) {
				throw new Exception();
			}
		}
		return out;
	}