Enhance resource management

Consistently close HTTP connections
Co-Authored-By: JordanP <jordan.pittier@scality.com>