Sakana Samurai, the bravest of all the fighters, was mortally wounded. He knew it, but he was the only one. He had to be strong for his men, he had to encourage them, get them ready for the next battle.
While dying slowly talked 80 times to his troops, patted 5000 shoulders and raised his glass 300 times. Being mortally wounded survived 100 days. They won the war.
Don't die until you haven't finished everything you have to do.