Get modified files from IDE instance instead of filesystem to
avoid losing changes when closing new unsaved files.
Merge branch 'show_save_dialog_when_closing'