Solved
Forum Discussion
You can map your "unusual screen" into the NameMapping repository and check its existence in the beginning of the loop:
if Aliases.UnusualScreen.Exists: closeUnusualScreen()
or simply use Find() for some property/value pair, which is relevant to your unexpected window:
if Find(Property, Value, Depth).Exists: closeUnusualScreen()