Disable interrupts before and after reset.