[BZ 1139780] UndoTasks are done in reverse order, so add stop command after the delete command to the undoTask list