minor changes on stopping threads

No match.