More generic client error handling