Fix config reader destruction