If a function block provides an FB_exit method , you can suppress its call for a special instance with the help of assigning the pragma {attribute no-exit} to the function block instance.
{attribute 'no-exit'}
Assume the method FB_Exit being added to a function block named POU:
In the main program PLC_PRG, 2 variables of type POU are instantiated:
PROGRAM PLC_PRG
VAR
POU1 : POU;
{attribute 'no-exit'}
POU2 : POU;
END_VAR
When variable bInCopyCode becomes TRUE within POU1, the method FB_Exit is called exiting an instance that will get copied afterwards (online change). The method FB_Exit is not called in context of the function block instance POU2.