[Bugfix] fixed not closed TX when undoCommands() fails