fold the turn.
You bet two pair and he still told you no good. If you had a set here this is fine with two pair its boarderline bad IMO.

78s 666,999 are all hands that beat you here.