In test loop, call loop() after catching each exception