If you hoist the above in a dedicated function, it's probably best to leave the `sys.exit(0)` here (i.e. don't hoist that into the function).