code: def stop(self):
          
          self.logger.warning("Stop executed")
          try:
              self._socket.close()
          except Exception:
              self.logger.error("Error while closing socket")
              raise VelbusException("Error while closing socket")
          time.sleep(1)
docs: Close the socket.