Actually fix config reloading; reload old config from memory if config reload fails, and don't leak memory.