Hello. So this usually works but occassionally I get this failure on this same step. I have a window that needs closed, and I need to actually hit the "close" button on it, or it locks the case.

If that step fails, I have it set to retry. The weird thing is, like it did today. It did actually close the window, but it still retries and ultimately says it fails, thus breaking the flow.

It says failed, but the window was definitely closed, so Automate seems to be getting confused.
This is the error it gives :
Problem while executing action 'PressButton'. Button-press failed.
Microsoft.PowerPlatform.PowerAutomate.Desktop.Actions.SDK.ActionException: Button-press failed. ---> Microsoft.Flow.RPA.Desktop.Modules.WebAutomation.Common.Exceptions.WebScriptGeneralException: No tab with id: 1156795944.
This is the step :

This is the UI element CloseBtn :

I know that maybe looks weird for a button name but that's the best I can do for this html (I think?) :

Sorry that's a lot of information maybe, but I think that covers everything. If anyone has any thoughts on how I can improve this so it stops fake failing, I'd appreciate it. It doesn't fail a lot, which is weird because it does this same step hundreds of times a week, but it just occasionally decides to fail.