@classmethod
def stop(cls):
    """Shutdown background thread, stop executing tasks.

        Note that calling this is not usually necessary, we're using a daemon thread, which does not need to be stopped explicitly.
        This can be useful for tests, as they can conveniently start/stop N times
        """
    if cls._thread is not None:
        cls._thread = None
