Fix examples from merge from master

Remove CheckError example: need to replace with better example that
makes better use of CaptureError and uses a persistent client.