The stop() method was async but called from a sync context, causing 'RuntimeError: no running event loop'. Changed to sync since it just sets flags.
The stop() method was async but called from a sync context, causing 'RuntimeError: no running event loop'. Changed to sync since it just sets flags.