This should only be done after `_new` below, since `@onExit` technically forms a block that captures any variables with their current value.