Updated puppetry to handle errors properly.