Removed "release when closed" attribute for the main window.