Fix for stack overflow in CompositeHttpClient.shutdown().