Exclude some unsafe event types from fallback object discovery.

These events are emitted from widget destructors, and we subsequently
access the objects, which makes the target crash. This is especially
noticeable on Mac and Windows, where we quite often end up with the
fallback mode.