Pull Request for Issue941: Cancelling scans inside of lists doesn't prompt cancel dialog

Turns out it didn't do it for loops either, since loops inherit from lists this fixes both list and loops not prompting on cancel.