Spawning of worker threads should not loop forever