deus ex machina
Noun
Meaning
any active agent who appears unexpectedly to solve an insoluble difficulty
Source: WordNetHypernyms
Examples
"Altogether it was a fabulous coup de théâtre and a stunning deus ex machina," A. A. Gill, Hello dollies, everywhere, The Sunday Times, News Review, 27 October 1996.
Deus Ex Machina is such a lame device to end the season.
Joshi argues that King's best-known works (his supernatural novels), are his worst, describing them as mostly bloated, illogical, maudlin and prone to deus ex machina endings.
Doyle wrote that the novel was originally conceived as a straight 'Victorian creeper' (as seen in the works of J. Sheridan Le Fanu ), with the idea of introducing Holmes as the deus ex machina only arising later.
In Mahagonny, though there are no supernatural occurrences for most of the opera, there is in fact a deus ex machina; God himself comes to Mahagonny right before Jimmy is executed.
It is only Heracles' deus ex machina appearance that persuades Philoctetes to go to Troy.