Just always keep a cent in reserve. Then you can never go bankrupt and your average winnings are barely affected.
Sorry for the late reply (don't know if you'll see this!) but I happened to be thinking about this again and the question popped into my head: what if I wanted to maximise a specific percentile (e.g. the 5th percentile) of my total winnings?