Yea, any time you have a few callers in a raised pot, and you only make middle pair on the flop, it is probably time to get out. You did the right move.