Cosmetic
Reducing race conditions for _add_task not being run because it's still queued
* Stop loop sooner when self._running is False
* Cosmetic changes