pendingTasks was never getting completely cleaned up.  Fixed that.