[PATCH 1/5] component: Add an API to cleanup before unbind