HI vicens,
I would always prefer to use some "messaging system" instead of aborting a vi!
Here "messaging system" means: using global variables, LV2-style global aka action engine, queues, checking a (main) stop button by reference...
Best regards,
GerdW

using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019