Log groups when a loop exits ASAP, close #1800