Implement a try/catch block to avoid config.yml being reset on reload.