In order to ensure that we clear the task queue once the shutdown is complete, we do it at this point.