Add error handler.
Fix example call.