My friend, you've just described classic poor writing.
But I still have to say, considering we had weak, lukewarm, but okayish writing in most of this story until the end parts, the author actually had to try to write the ending so poorly.
Dude's insane. Maybe he died and some imposter finishes...