I'm using 2 recovery scenario files. Each containg functions to handle unwanted Dialog box(in both the functions the approach slightly differs in handling the issue).

One Recovery function triggers on Test Run Error(Object is disable) and another one triggers when Popup window appears.

The prriority of Test Run Error one is higher than Popup window.

While executing, Recovery functions on Test Run Error handles the pupup properly. But again the Recovery function in the second file(for Popup window) also getting triggered)

Is there any way to handle it?

As Pupup is handled(and closed) by Recovery functions described in the file for Test Run error the recovery function in other file should not triggerd.