wait for spawned threads exit
OO style threading API