Add meaningfull error message...
Sava and close the window