when having multiple modal Windows (more than 3) within one application and you close the upperst window, the focus is not set to the next window below. the focus is set to the next window, the one behind the upperst.
Applcation --> Modal1 --> Modal2 --> Modal3
Closing Modal3 will set focus to Modal1.
You can use Alt + Tab to change off and back to the application, but this is not good.