Close any window through its PID
The following method demonstrates how we can close any kind of window, using its PID.
Use the "Get Details of Element in Window" action in order to get the details of a random element within the window of interest.
In the advanced tab of the action's properties window, set the attribute name to processid.
The output of the above will be the PID.
Now close the window by terminating the corresponding windows process, using the "Terminate Process" action. Configure the action's properties window as follows:
Specify process by: process ID
Process ID: output of the previous action