code: def abort(msg=None, exitcode=1):
      
      if msg is not None:
          if exitcode in (None, 0):
              print(msg)
          else:
              print_err(msg)
      sys.exit(exitcode)
docs: Aborts the process (*sys.exit*) with an *exitcode*. If *msg* is not *None*, it is printed first
      to stdout if *exitcode* is 0 or *None*, and to stderr otherwise.