Fix issue if calling save/save as when all editors has been closed