cleanup of eventmanager