bugfix: drain() of JobQueue freezes if there is any job in the queue.