@Override
	public void close() {
		if (reader != null)
			reader.interrupt();

		if (reader != null)
			writer.interrupt();

		try {
			if (socket != null) {
				socket.close();
			}
		} catch (IOException e) {
			/*
			 * Ignore exception.
			 */
		}

		socket = null;

		super.close();

	}