Slightly more glitch/bug -proof serial irq handling.