code: def shutdown(self, timeout=None):
          
          try:
              super(BaseDrmaaManager, self).shutdown(timeout)
          except Exception:
              pass
          self.drmaa_session.close()
docs: Cleanup DRMAA session and call shutdown of parent.