Add missing case for scheduler stopped state in tick function
Send scheduler-state-changed callback for error-to-error transition