http: Hint for the server to kill the connection after responding.

This should reduce waiting time for servers that pay attention to `Connection: close`. I *think* perhaps using HTTP/1.0 would actually lead to more servers abiding by it, but for sample code it's not really a big deal.

Also, the test wasn't actually failing in failure conditions, so that's changed too.