You could have done 2 things better. Bet out on the flop $2 to see where you were. In this case he would probably smooth call until you hit the str8 on the river in which case you were doomed anyway. You should have reraised his weak lead with a pot sized bet. If he called that slow it down and get out when he comes over the top.