Short Story:Final Reward
A short story by Terry Pratchett, in which the author of a wildly popular series of fantasy novels has a midlife crisis, decides he doesn't want to do this any more, and deliberately ends the series by killing off his much-loved central character.
Then there is a knock on the door....
Republished in "A Blink of the Screen".