Automatically call unregister from parent view when child is destroyed