code: def _sm_cleanup(self, *args, **kwargs):
          
          if self._done_notification_func is not None:
              self._done_notification_func()
          self._timer.cancel()
docs: Delete all state associated with the chaos session