switched to panic from os.exit()