code: def _abort_all_transfers(self, exception):
          
          pending_reads = len(self._commands_to_read)
          # invalidate _transfer_list
          for transfer in self._transfer_list:
              transfer.add_error(exception)
          # clear all deferred buffers
          self._init_deferred_buffers()
          # finish all pending reads and ignore the data
          # Only do this if the error is a tranfer error.
          # Otherwise this could cause another exception
          if isinstance(exception, DAPAccessIntf.TransferError):
              for _ in range(pending_reads):
                  self._interface.read()
docs: Abort any ongoing transfers and clear all buffers