Saved open files and reopened
Forgot this part somehow
Addressed Oleg's feedback
Added missed )
Merge pull request #192 from beaufortfrancois/saveSessionFiles

Save session upon closing the editor window