Make sure the run stops at the right time.