E3S7B: Undefine scenario-local macro before EOF