RobotStudio event

Store/restore path problem

Hello to all, I'm trying to stop robot in the case light curtain is broken and press is moving down, I'm trying to use path store/restore, but all I can see is that robot is recording last point during interrupted motion, and goes to it in interrupt routine, and I'd like to stop it in the middle of motion by interrupt and send it back to the first point of the last motion before interrupt occurred. Is this doable, and could you please give me some guidance, I tried all possible combinations of store, restore, stop, start instructions without success. Thanks.