fixed bug when WebSocket connection close.
Merge pull request #3 from rotsuya/fix_bug_when_ws_close

fixed bug when WebSocket connection close.