Question about Aperiodic task

Hi all,

I am using an aperiodic component which trigger itself with the doTrigger()
function at the end of the updateHook to have it call again.
Does anyone know if it is possible to use the same behavior in a stopHook ?

My problem is that the stopHook is only called once so I can't use a script
in the stop instructor. I am trying to desgin an "undeployer" which would
call an "undeployer script" in the stopHook.