fix websocket opcode=close core dump