Prevent handling of events not caused by plugin