code: def exit(self):
          
          if self.gdb_process:
              self.gdb_process.terminate()
              self.gdb_process.communicate()
          self.gdb_process = None
          return None
docs: Terminate gdb process
          Returns: None