Update scan status

Update the status of a scan, such as canceling a running scan.