Scheduler transition ON-->OFF covered by tests.
- Fixed bugs that prevented scheduler stop to be propagated