As Shikamaru put it, he dug his own grave. His stupidity didn't really help him either, and he got what he deserved. Anyways, being buried alive can't be half as bad as burning in hell.