code: def stop(widget, force=False):
          
          # make sure we have a widget to stop
          loader = getattr(widget, '_private_xloader_widget', None)
          if not loader:
              return
          
          # decrement the number of times this loader was created for the widget
          # to allow for stacked closure
          count = getattr(widget, '_private_xloader_count', 0)
          if force or count <= 1:
              # close out the loader widget
              setattr(widget, '_private_xloader_count', 0)
              setattr(widget, '_private_xloader_widget', None)
              
              loader.close()
              loader.setParent(None)
              loader.deleteLater()
          else:
              setattr(widget, '_private_xloader_count', count - 1)
docs: Stops a loader widget on the inputed widget.
          
          :param      widget | <QWidget>