Improved: Confirm exit when documents is unsaved

If document is saved or just opened afce will not ask you before exit.
Issue #7 is closed.