Bug fix: File->Close in the original window was disabled after calling