In your code from post #58, execution will "Fall into" the ISR, never making it to the Main loop.

Either put the handler after the main loop, or add a GOTO that jumps over the ISR.