AVALANCHE: Fix two blocking loops not checking shouldQuit()