Lightning doesn't get into the boxes of a closed ferris wheel, any more than it gets into a car.
So I guess it ain't magic or lightning here, he just got a traumatic flashback from the sound of thunder and forgot about having murdered that woman. (And some ten years worth of time)