Added exit_on_close to gui
Added exit_on_close to gui