Test of failed loop in cleanup