How to close all windows if one of them is closed?

Yes. I know but I don’t know how to use it to close all windows if one of them is closed.

Edit: I see. I can close by pressing ESC. Thank you all !!!