docs: def main(self) -> None:
          """
          Main entry point. Runs :func:`service`.
          """
          # Actual main service code.
          try:
              self.service()
          except Exception as e:
              self.error("Unexpected exception: {e}\n{t}".format(
                  e=e, t=traceback.format_exc()))