def METHOD_NAME(self) -> None:
    """Stop the authentication thread"""
    if self.pipe:
        self.pipe.send(b'TERMINATE')
        if self.is_alive():
            self.thread.join()
        self.thread = None  # type: ignore
        self.pipe.close()
        self.pipe = None  # type: ignore
    super().METHOD_NAME()