Running On Exit state tree task will break the tree 5.8.4

Has anyone been having this issue - I have states that are not considered for completion that run code on state exit and it works fine the first time but after than, when entering back into that state I get a fail back to root.

If I remove it, no problems at all.

never had this issue before.