Set close header when closing HTTP/1.1 connections

Fixes #1958
Merge pull request #1960 from jroper/connection-close-2.1

Set close header when closing HTTP/1.1 connections