script to stop currently running measurements