re add sys.exit and conform to styleguide re []