Make events robust against their event_context being freed