code: def terminate(self):
          
          logger.info("deleting entire server %s" % self)
          self.close()
          try:
              shutil.rmtree(self.basedir)
              logger.info("deleted server under %s" % self.basedir)
              # delete everything from self, so that using this object fails results
              # in an error as quickly as possible
              for val in self.__dict__.keys():
                  try:
                      delattr(self, val)
                  except:
                      pass
          except Exception, e:
              logger.warning("failed to delete SessionServer: %s" % (e))
docs: Delete all files created by this server, invalidating `self`. Use with care.