Fixes scheduler.async.clearAll().
Scheduler is substantially refactored but still poorly designed.