title: Capture window close event
body: <p>I want to capture events that close editor window (tab) in Visual Studio 2008 IDE.
  When I use 
  dte2.Application.Events.get_CommandEvents(null, 0).BeforeExecute
  I successfully captured such events:</p>
  
  <ul>
  <li>File.Close</li>
  <li>File.CloseAllButThis</li>
  <li>File.Exit</li>
  <li>Window.CloseDocumentWindow
  and others. </li>
  </ul>
  
  <p>If code in window is not acceptable, I stop the event (CancelDefault = true). </p>
  
  <p>But if I click "X" button on the right hand side, "Save Changes"; dialog appears, tab with 
  editor window close and I have no any captured events. In this case I can capture WindowClosing event, 
  but can not cancel the event.</p>
  
  <p>Is it poosible to handle "x" button click and stop event?</p>