Clear interrupt status before doing anything interrupt-sensitive