Added safeguard that workers will only terminate once boss is done pushing to queue.