Force HTTP connection closure after each request

This patch attempts to close HttpClient connections after they are no longer used. Otherwise the connections linger in ``CLOSE_WAIT`` until the associated objects are garbage-collected. This may not be the best approach, but does work.