The threads of devices were still running after `disconnect` had been called. We add a `_stopped` flag that is set when the thread should be stopped. closes odoo/odoo#56500 X-original-commit: 639a4e4fc72567a9655599eef150fabefaf1ff2e Related: odoo/enterprise#12651 Signed-off-by: Quentin Lejeune (qle) <qle@odoo.com> Signed-off-by: Antoine Prieëls <aprieels@users.noreply.github.com>