use on-close to remove from the hub