Set the finished flag.
if true, the foreach iteration was interrupted with a break, if false, it finished the iteration
See Implementation
Set the finished flag.