code: def close_handle(self):
          
          try:
              if hasattr(self.hProcess, 'close'):
                  self.hProcess.close()
              elif self.hProcess not in (None, win32.INVALID_HANDLE_VALUE):
                  win32.CloseHandle(self.hProcess)
          finally:
              self.hProcess = None
docs: Closes the handle to the process.
  
          @note: Normally you don't need to call this method. All handles
              created by I{WinAppDbg} are automatically closed when the garbage
              collector claims them. So unless you've been tinkering with it,
              setting L{hProcess} to C{None} should be enough.