endInterruptionWithFlags