Great beginning, woefully bad ending.
I don't even really have to point out flaws in the ending, because literally every aspect of the last 30-40ish minutes of the film is a flaw.
EXCEPT for the grandma hinted that she was in the loop as well. That was cute and original.