Cleanup for loop