Fix an issue with updating the config, handle errors in writing config