Scan Macros can be interrupted by Ctrl-Cs. Sardana behaves differently depending on the number of Ctrl-Cs pressed. Single and double Ctrl-Cs do not require any fix-up procedure. However, triple Ctrl-Cs need a special treatment.
A detailed discussion of the issue and an explanation of how to deal with this problem can be found here