Fix a bug in WebSocketServer

verify receiver connection when closing it.

Signed-off-by: Manson Li <manson.li@matchstick.tv>