Handling unexpected client errors