Added another way to make the thread stop when the child threads stop