PEI close window