component: cleanup event registration