Fixed: Scheduler can not stop or restart correctly if was started by another host (bug#9924).