docs: def on_close(self, ws):
          """ Called when websocket connection is closed
          """
          log.debug("Closing WebSocket connection with {}".format(self.url))
          if self.keepalive and self.keepalive.is_alive():
              self.keepalive.do_run = False
              self.keepalive.join()