Correct handle of interrupts.