Refactor config-persister: clean up exception handling and netconf client.