This question is somewhat unclear which makes it difficult to give a sensible answer...
Which power is cut off - machine power or house sockets?
How is the power reapplied?
What happens after the power is reapplied?
Does the programme run to completion?
Good Luck...
July 2016