Add error handling for missing config.json file.