parameters: (self)
docstring: Closes the handle to the thread.
  
          @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.
docstring_summary: Closes the handle to the thread.
docstring_tokens: Closes the handle to the thread .
function: def close_handle(self):
          """
          Closes the handle to the thread.
  
          @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.
          """
          try:
              if hasattr(self.hThread, 'close'):
                  self.hThread.close()
              elif self.hThread not in (None, win32.INVALID_HANDLE_VALUE):
                  win32.CloseHandle(self.hThread)
          finally:
              self.hThread = None
function_tokens: def close_handle ( self ) : try : if hasattr ( self . hThread , 'close' ) : self . hThread . close ( ) elif self . hThread not in ( None , win32 . INVALID_HANDLE_VALUE ) : win32 . CloseHandle ( self . hThread ) finally : self . hThread = None