proxy_client: add error handling in timeout handler