Fix interupt handling.
Must do very early reset of interrupt status register to ensure further interrupts result in a falling edge.