Chessa::URIHandler: Provide an on_error sub.