It happens, don't sweat it.
In the 60 or so levels of D&D I've DMed, there's only one instance where I felt sorry for a TPK. I played the opposition intelligently, they sent a couple of assassins with an Ogre Mage to scout where the party went for rest (it was a big dungeon, so they assaulted...