code: def destroy(self):
          '''
          Called from tearDown of simulation tests. Cleans up everything.
          '''
          defers = list()
          for x in self.iter_agents():
              defers.append(x.terminate_hard())
          yield defer.DeferredList(defers)
          yield self._journaler.close()
          del(self._journaler)
          del(self._jourwriter)
          del(self._messaging)
          del(self._tunneling_bridge)
          del(self._database)
          del(self._agencies)
          del(self._breakpoints)
          del(self._parser)
          del(self._outputf destroy(self):
          '''
          Called from tearDown of simulation tests. Cleans up everything.
          '''
          defers = list()
          for x in self.iter_agents():
              defers.append(x.terminate_hard())
          yield defer.DeferredList(defers)
          yield self._journaler.close()
          del(self._journaler)
          del(self._jourwriter)
          del(self._messaging)
          del(self._tunneling_bridge)
          del(self._database)
          del(self._agencies)
          del(self._breakpoints)
          del(self._parser)
          del(self._output)
docs: Called from tearDown of simulation tests. Cleans up everything.