fixed concurrentmodificationException on window close