Thanks for all the responses. I think the concensus was that my initial flop raise was useless and set me up for this misery. I might have lost the hand regardless of how I played it, but I certainly wouldn't have needed to get down on myself for getting all-in while behind.