code: def stop(cls):
          
          if AnimatedDecorator._enabled:
              if cls.spinner.running:
                  cls.spinner.running = False
                  cls.animation.thread.join()
  
              if any(cls.animation.messages):
                  cls.pop_message()
  
              sys.stdout = sys.__stdout__
docs: Stop the thread animation gracefully and reset_message