code: def do_stop_alerts(self, _):
          
          self._stop_thread = True
          if self._alerter_thread.is_alive():
              self._alerter_thread.join()
          else:
              print("The alert thread is already stopped")
docs: Stops the alerter thread