Ensure to close all connections before setting the flag that prevents any notification (notably the notification to disconnect). task-3392096 closes odoo/odoo#127953 X-original-commit: 905307e8d08ed3595a1f965fe846f1fe6ebe9d5c Signed-off-by: David Monjoie (dmo) <dmo@odoo.com>