QProgressListener<I> removeListener(QProgressListener<I> listener) {
			if (listener1 == listener) {
				return listener2;
			}
			else if (listener2 == listener) {
				return listener1;
			}

			if (listener1 instanceof ChainedProgressListener) {
				listener1 = ((ChainedProgressListener<I>) listener1).removeListener(listener);
			}
			if (listener2 instanceof ChainedProgressListener) {
				listener2 = ((ChainedProgressListener<I>) listener2).removeListener(listener);
			}
			return this;
		}
Cancels all running tasks and disposes of the internal thread pool if it is a private
pool.
Ghidra/Framework/Generic/src/main/java/generic/concurrent/ConcurrentQ.java