def METHOD_NAME(self, wait: bool = True) -> None:
    """Stops the alert.
    Args:
        wait: If True, waits for the alert to terminate after stopping it."""
    self._kill = True
    if wait:
        self.wait()