Adjust examples to new error handling