If you don't cut a slit into the shell before cooking, your chestnuts will definitely explode. If you did cut a slit, and they still exploded, your cuts may have been too small or too shallow. And sometimes you'll get the odd chestnut that decides to explode anyway!