I find that TPKs give credibility. The best way to do a TPK is to plan for it, but never force it. Death is a big deal. It should add to the story, not detract from it. And the last thing you should do is intentionally TPK (that is, railroad the PCs into it). So, how can you plan for...