Two properties of the config struct come in handy here: Being able to terminate the connection between the different runs and the possibility to defined multiple connection strings over which the exporter will iterate.