Improvement for eachClone function. Allowing to cancel the loop if need it