@Override
	public void close() {
		if (readMonitor != stdin) {
			try {
				in.close();
			} catch (IOException e) {
				System.err.printf("Cannot close console input. %s: %s%n", getClass(), e.getMessage());
			}
		}
		if (out != stdout) {
			try {
				out.close();
			} catch (IOException e) {
				System.err.printf("Cannot close console output. %s: %s%n", getClass(), e.getMessage());
			}
		}
	}