This happened to me yesterday.
Basically the bike lane ends and the road goes from 1 lane to 3 with a left turn, straight and right turn lane. I am going straight so I need to negotiate the ending bike lane with a merge into traffic so I can go straight. I look over my shoulder and signal my intentions to merge as the car in front decides it wants to turn. By the time I turn my head back around (and having missed the turn signal from the guy in front), they are slowing to turn.
Instead of plowing into the back of them, I get back into the ending bike lane and luckily they see me and don't complete their right turn.
Lesson I learned from this: If I wanna go straight here again, take the lane sooner so I can negotiate turning traffic more predictably.
Any other tips?