I could see something like this going down just before the climax...
Bruce enters Wayne Manor. Finds Alfred, nearly dead on the floor (maybe shot or bludgened by the villain. Alfred warns Bruce that they know who he is.
Alfred: They're coming for you.
Bruce: Who?
Alfred: Everyone.
Alfred points to the tv. News reports showing split images of Batman and Bruce Wayne. Hard evidence proving they are one in the same.
Don't forget, Batman is a fugitive...

t:
Cut to: outside of Wayne manor as SWAT and police break through the Wayne manor gate. News choppers hover above. Bruce Wayne is cornered.
Bruce has to escape into the cave, dons the outfit one final time. He breaks out but is pursued. He must deal with not only the villain, but Gotham as well.
So yes...I see him (if he dies) dying as Batman, sacrificing himself for Gotham. It's that action which somehow makes the city realize that they were chasing, not a murderer, but a hero. Making him a legend.