chemda: "sitcoms used to end their thing because they couldn't find an ending, and somebody wakes up and it's all dream"
Deus ex machina is a Latin phrase that is used to describe an unexpected, artificial, or improbable character, device, or event introduced suddenly in a work of fiction or drama to resolve a situation or untangle a plot (e.g., having the protagonist wake up and realize it was all a dream...
http://en.wikipedia.org/wiki/Deus_ex_machina
Thats about the only thing i remember from four years of latin