Add a method to forget all queued event handlers.