Fighting is rational when the alternative is being killed.
FDR made a big mistake announcing that he was going for unconditional surrender. This resulted in Germany fighting to the bitter end. Hitler dragged it on to the last few hours - he knew what was going to happen to him when the war ended.