respawn threads to combat memory leaks