code: def close(self, title, matchClass=False):
          
          if matchClass:
              self._run_wmctrl(["-c", title, "-x"])
          else:
              self._run_wmctrl(["-c", title])
docs: Close the specified window gracefully
          
          Usage: C{window.close(title, matchClass=False)}
          
          @param title: window title to match against (as case-insensitive substring match)
          @param matchClass: if True, match on the window class instead of the title