code: def finish(self, exitcode):
          
          self._queue.put(self.Finish(exitcode))
          self._thread.join()
docs: Cleans up.
  
          Anything pushed after finish will be dropped.
  
          Args:
              exitcode: The exitcode of the watched process.