`defer`s in `for range` loops may not run when you expect them to
