fixed #4103. fix crash when websocket close