Fix for sys not defined on exit

Selecting Quit from the Profiles window after logging out shows "'sys' is not defined" for lambda: sys.exit(0) on line 119.