Definitions of deus ex machina:

  • noun:   any active agent who appears unexpectedly to solve and insoluble difficulty