Inject process scheduler into task scheduler.
A bit of logging and error checking.