fix: unregister hwtimer on the end of the measurement