Required prerequisites
Motivation
i feel like the way cleanup is implemented in each runtime is done differently, ie one is using a context manager, one is uses a private stop(),
a good idea could be to unify this and add to the base class implementation also.
Solution
i think we can add to the base class an abtrsact method something like
cleanup(self) -> None:
xyz stuff
Alternatives
No response
Additional context
No response