Added handling from Connection: close header and server closed http client connections.

Signed-off-by: Gil Markham <ddimensia@gmail.com>
Merge pull request #876 from ddimensia/2.x

Added handling from Connection: close header in HttpClient