docs: def handle_connection_error(func):
      """Fail with non-zero exit code."""
      @functools.wraps(func)
      def wrapper(*args, **kwargs):
          try:
              return func(*args, **kwargs)
          except device.interface.NotFoundError as e:
              log.error('Connection error (try unplugging and replugging your device): %s', e)
              return 1
      return wrapper