docs: def transaction_stop(self):
          """stop/commit a transaction if ready"""
          if self.transaction_count > 0:
              logger.debug("{}. Stop transaction".format(self.transaction_count))
              if self.transaction_count == 1:
                  self._transaction_stop()
  
              self.transaction_count -= 1
  
          return self.transaction_count