Does anybody have any idea how I could make this window close operation faster or at least perform in background and not interfere with event processing?