resources :: close window