Table designer gets closed after such error (or any other errors).
Let's just say you put in 50 new variables and made one change that could easily be fixed if designer is not closed, now designer warns you about such change and all your work is dropped in vain, and designer also blames you for such sloppy work and says we could not save changes because "User canceled save action". I think this behavior should be changed.