finalize client error handling