Here's how it's used:
* The hero died in a blaze of glory, saving the town from the invaders. (The hero's death was dramatic and heroic)
* The company went out of business in a blaze of glory, after a massive party and a final, triumphant product launch. (The company's failure was dramatic and memorable)
The imagery of "a blaze of glory" evokes a bright, intense light, often associated with fireworks or a dramatic sunset. This imagery emphasizes the dramatic and often heroic nature of the ending.
It's important to note that "in a blaze of glory" can be used both for positive and negative events. While it often implies a heroic or noble ending, it can also be used for events that are dramatic but ultimately tragic or unsuccessful.