UndoManager: Fix crash bug(s). Dont delete view if its parented, it will be taken care of later. Disconnect and destroy stack, for some reason it was firing signals after/while dtor.