I'm now on my third startup that has IPOed (Zendesk). I've been relatively lucky, but I also tend to eschew media and gaming companies; my perception of the risk of long-term failure is higher for those. I prefer to work for B2B and infrastructural companies that serve up-market customers and provide real technological value (i.e. can't be easily copied), and my choice has served me well thus far.