Better error handling of squidclient.

It didn’t work, and I didn’t know why. So, let’s fix the error handling!