I've had to put in a timeout here and it really shouldn't be necessary.
But for some reason the client.activeRequests is not being reset to 0.
This might be because a server is closing before it get's a chance to clean up.
It's not a big deal, but it's just a horrible workaround that I'd like to eventually find the root cause and fix.