Hotfix for closing bug

Application.Exit() was evil to use. Close() ensures to check opened
documents within the editor (and no crashes!)