For me the Deus ex Machina is just an out of the blue solution for a problem. Typically I see it as a flaw in a story, however I believe there have been many historical moments that were basically just that. To some extent a Black Swan event could be classified as a DeM, IMO. If I ever write a first draft it will be a DeM for me.