fix websocket close issue: we should wait a close response
Merge pull request #49 from onlychoice/fix_ws_close

fix websocket close issue: we should wait a close response