To go out in a blaze of glory means you do something awesome and dramatic at the end of your life, career, political post, etc. as your last act; this is used positively
ex. a singer putting out a best-selling critically acclaimed album at the end of their career