Clear task queue when Scheduler is shutdown

Tasks on scheduler thread. In ``DynamoScheduler.Shutdown()``, it notifies schedule thread to shutdown as well. Depending on scheduler thread's implementation, it is possible that although scheduler thread have been unavailable, but there are still some pending tasks in the queue. For example, ``RevitSchedulerThread`` uses Revit's idle event to process tasks, and if it is detached from idle event, tasks would never get a chance to run, so we need to make sure all tasks are cleared. 

@Benglin  please. 
That's good to know, but I guess you have misunderstood my original comment. My question was, do we need to throw an exception when some code calls ```DynamoScheduler.ProcessNextTask``` when ```DynamoScheduler``` has been shut down? Is that overkill?