Book Of Bad Dreams: Chapter III: Buried Alive (Brogg 7)
It works. You scream loud and scrape at the walls, and the good people of the village come to your aid. They unearth your grave, heft out your coffin, open it up, and release you to the fresh autumn air.
Later that week, you marry a wonderful bride as you are sworn in as mayor.
...
No. No, ha, that would be so nice. But damned you are, although dead not yet. Soon, not soon enough.
You die, your flesh consumed.
The end.