Add error handling for YAML parsing
Allow all other exceptions to bubble up