Instead of searching for the events to purge, keep the list of scheduled events on the timer list and purge the events that we have scheduled. (cherry picked from commit 3f8024b4a2f12fcd28a9dd813b6f1f3f11d506f2)