Blocking queue thread now is interrupted when all producers have been finished of pushing tasks.