Wiktionary
go out with a bang
vb. (context idiomatic English) To depart from a place or situation in a grand or dramatic fashion.
Usage examples of "go out with a bang".
I figured they're out of fuel, anyway, so they might as well go out with a bang.
If you've got to go out, better to go out with a bang, K reasoned.
That small pocket of hostiles north of Telville decided to go out with a bang.