Tweak http client to send connection close header by default. Also add constructor for custom client.