Bad as in bad for the character, is just them dying.
The worst ending or one that has filled me with the most sense of frustration is when a book was dragging on but I kept reading because I wanted a mystery of the world answered, I got the reveal, it was barely better than saying it was all a...