event class cleanup