measure: when stopping first check whether or not to process next measure.
measure: when stopping first check whether or not to process next measure.

This could be improved by adding a flag/event upon which the processor would wait so that we can stop faster.

Ecpy/ecpy,Ecpy/ecpy