When you know that the PC is going to die outside of some Deus Ex Machina intervention, go with the flow and begin a narrative.
"As your body rages with pain from the melting heat of the lava, a torrent of memories, hopes, and regrets come to the surface of your final thoughts. You remember the...