You pulled a William Afton on him.

In the words of FNAF World Scott Cawthon:

OK. Alright. I get it. Was this the ending you really wanted? Coming all the way here just to kill me? Was I REALLY the villain in your mind? I mean sure, this is definitely one way to bring the story to a halt, but surely there was a more satisfying ending. I just do what is demanded of me! I fill your insatiable gullets with more and more and more! And now your here to show your gratitude. Well congratulations then. I haven't brought this story to an end; you did. So feel good about yourself for ending the story by killing the storyteller!