Cancels the current lookup.

def cancel(self):
        """
        Cancels the current lookup.
        """
        if self._running:
            self.interrupt()
            self._running = False
            self._cancelled = True
            self.loadingFinished.emit()