Avoid recursive process events loops.