Added error handling for configuration parsing.