cleanup Events.c