When new partition is installed and no exporter are configured then the ExporterState is cleaned up. It can happen that concurrently to that the partition is closed again, because other node becomes leader. If this happens then the db is closed and it might happen that the the ServiceController->ExporterManagerService->ClearState still wants to access the database, THEN we get an segmentation fault.
Describe the bug
When new partition is installed and no exporter are configured then the ExporterState is cleaned up. It can happen that concurrently to that the partition is closed again, because other node becomes leader. If this happens then the db is closed and it might happen that the the ServiceController->ExporterManagerService->ClearState still wants to access the database, THEN we get an segmentation fault.