When cancelling a command, also actually set the cancelled flag in addition to renaming the command.