Remove window reference