When pressing escape, the tech tree now uses the same close logic as hitting F6 or the close button. This was previously causing the pop-up system to fail in-game. After the error occurred, no more pop-ups would be shown until it is cleared by reloading, or by hitting "F6" multiple times. This would be most noticeable when capturing an enemy city and the player would not be able to choose to annex, puppet, or raze, as it would just annex it automatically.