Client error handling