When I am editing table and close table editor, I get a prompt asking whether I want to persist the changes. If this persisting will fail for some reason (for example due to this problem: viewtopic.php?f=2&t=2014), editor is closed and I will lose my changes unless I coped the alter script before persisting it.
I believe that in case of error, table editor should not be closed.