"RESUME cancels all running interrupt programs and subprograms up to the
level at which the current interrupt was declared." This leads me to believe that what you need is the SWITCH to be in a subprogram whist keeping the interrupt DECL in Main. Give it a go and see if it works.
error: RESUME INADMISSIBLE FOR GLOBAL INTERRUPTS