Handle "Connection: close" header field from client (close #21)

I don't like the use of `when` as infix (because it doesn't correspond to natural language anymore).

Also, I would prefer to give the boolean value a name. Something like `continue`? (If I understand it right.)