Using sys.exit() instead of quit()