Make events work with plugins that check for cancellation