Closing opened windows for performance