When a program running a generator enqueuer is interrupted or finishes, the termination of the generator enqueuer will hang. This is most likely due to imporperly terminating the threads and some being stuck running or in deadlock during termination.