how can i make tasks uninturrupted in behaviour tree

hi
im trying to make a scanner for ai that is like searching for the player. basically like, it hears a sound in a room, goes where it heard it, scans, then if it finds the player with scanner it should move towards/attack the player.

now i got a lot of it done, i got the scanner most of it working, but only problem is that, when its scanning and it can see the player while its scanning, it interupps the scan and attacks the player and im not sure how to not interuppt the task

Behaviour tree

anyone?