.....I don't think she was ever 'alive' in the first place. (Read the touhou wiki article on Layla Prismriver for a potential explanation of the above.)
Maybe she just does it to show her despair? Like Zatsubou-sensei? cause he never seems to 'die' from hanging himself either....