[settings] Unregister the children when unregistering the parent