join the spawned thread before leaving unittest block