Error handling around examples