In issue 999, a problem was raised that iTerm2 won't quit when the last window is closed if it's been running for less than 10 seconds. The 10-second safety valve was added to allow you to fix a busted profile which could cause the last window to close immediately when the app starts. The problem is that you might want a short session. This change disables the safety valve if you type in a session or intentionally close the window.