fix: allow exiting a running measurement (#182)