Improved error handling in the client.