[BUGFIX] Scheduler now throws exception on SQL query error