fix websocket close issue: we should wait a close response

when user config a websocket connect request after a close request, websocket will receive the last close response as the response of connect request, this will cause parse error.