cw: Added better exception handling support for Scheduler.
Beefed up tests for exception handling.