New movement during search instruction

Hello,

I am working with a trap routine wich is called by an interrupt.

TRAP tExtMachineStop
StopMove;
StorePath;
! Homerun routine
rHomeRun;

ENDTRAP

This works perfectly but when called during a Seach instruction the StorePath gives an error.
Does anyone have an idea how I can make this work?

Thanks in advance

Do you need to store your path?