Added the option to save session on exit to globals config file.

The boolean variable "save_on_exit" was added to the globals matrix in the "globals.lua" config file.
This determines if the close_win function should save before closing.