test closing upstream socket prior to upgrade

should close the client socket with ECONNRESET,
but currently is left hanging.
close websocket if proxyReq is closed before upgrade

avoids leaving client sockets open when upstream
connections are rejected.
Merge pull request #708 from minrk/close-closes

close websocket if proxyReq is closed before upgrade