Stops the execution of a scan. To be used with RunScan, when the command stack is not accessible.
StopScan