add chef exception handler by @mojotech