Add the chef_handler error handling logic.