transport: In WebSocketTransport, added method close.