multiqueue: Exit loop function if the pad is flushing