cleaning event queue after flushing