Eucatastrophe
Eucatastrophe is a term coined by J. R. R. Tolkien which refers to the sudden turn of events at the end of a story which ensure that the protagonist does not meet some terrible, impending, and very plausible doom. He formed the word by affixing the Greek prefix eu, meaning good, to catastrophe, the word traditionally used in classically-inspired literary criticism to refer to the "unraveling" or conclusion of a drama's plot. For Tolkien, the term appears to have had a thematic meaning that went beyond its implied meaning in terms of form. In his definition as outlined in his 1947 essay On Fairy-Stories, eucatastrophe is a fundamental part of his conception of mythopoeia. Though Tolkien's interest is in myth, it is also connected to the gospels; Tolkien calls the Incarnation the eucatastrophe of "human history" and the Resurrection the eucatastrophe of the Incarnation.
Read more about Eucatastrophe.