HIERARCHY_EXIT should happen before return.