proxy: end() the proxy's socket after a CONNECT authorization request

Before, the socket would be kept open if the 407 response was sent.
Test case included.
proxy: add explanatory comment
v0.2.1