Added exit when no file chosen on open-document, added error display on save.