better use of sys.exit()