Disable interrupts before and after a reset.