Fix bug caused by interrupt

Removed processing in the interrupt handler and let the main loop take care of it. This seems to avoid any hangs during the interrupt.