Send close control frame on client-initiated disconnects
Merge pull request #2458 from andrewconner/ws_close

Send close control frame on client-initiated disconnects