Fix hang on stop before run w/ multithreading.

And clarify logic.