ensured interval gets cancelled if user prematurely stops the measurement