how do i exit program in try except,sys.exit(1)