title: How to handle incoming ajax requests after destroying window?
body: <p>I create a window containing grids that send off ajax requests. Now, I immediatley close the window again before the grids are fully created and the ajax requests return.</p>
  
  <p>I have two problems:</p>
  
  <ul>
  <li>My components within a window are still "alive" after a window is destroyed</li>
  </ul>
  
  <p>Chrome console lists them. Although my window has the <code>autoDestroy: true</code> the gridpanel and store are still existing after the window is closed. When closed, the <code>destroy</code> event is fired. Docs say, all components under the window should be destroyed.</p>
  
  <ul>
  <li>Then my callbacks finally return and get executed but the window is destroyed</li>
  </ul>
  
  <p>The problem is, that the callbacks try to reconfigure a grid that has no more store attached.</p>
  
  <p>Error: <code>Uncaught TypeError: Cannot call method 'getCount' of null Table.js:500</code> (<code>/lib/extjs/src/view/Table.js</code></p>
  
  <p>How can I stop the callbacks from processing if my window is destroyed?</p>