Make App actually wait for saving files on exit.
Also (*) in title now appears only after saving is done