What could be the most simple way to do it is like this,

(ignore the start disables, interactive entity/used, choose your own way when you wanna start it.)
explanation: if the aialertness is orange it will cancel the follow node and by failing it the ai unloads.
Hope this helps!