feeling a bit shellshocked and wondering your thoughts on this, if i could have avoided it? i suppose he just guessed i had a straight?

thanks a lot
jack

PokerStars No-Limit Hold'em, $0.05 BB (5 handed)

jack0316 (Button) ($5.02)
SB ($6.04)
BB ($5)
UTG ($12.44)
MP ($1.91)

Preflop: jack0316 is Button with Jd, 10s
UTG calls $0.05, 1 fold, jack0316 calls $0.05, 1 fold, BB checks

Flop: ($0.17) Qd, 9d, 8h (3 players)
BB checks, UTG bets $0.20, jack0316 raises to $0.40, 1 fold, UTG calls $0.20

Turn: ($0.97) 2d (2 players)
UTG checks, jack0316 bets $0.45, UTG calls $0.45

River: ($1.87) 8c (2 players)
UTG bets $8, jack0316 calls $4.12 (All-In)

Total pot: $10.11 | Rake: $0.50