created CriticalModule for flushing interrupts