def stop_slice_before_delete(sender, **kwargs):
    try:
        kwargs["instance"].stop()
    except:
        pass
Before deleting a slice, make sure it is stopped
dataset/ETHPy150Open fp7-ofelia/ocf/expedient/src/python/expedient/clearinghouse/slice/models.py/stop_slice_before_delete