title: Getting NoSuchWindowException when the child window is closed
body: <p>I have following scenario</p>
  
  <p>I click a link(i.e. add comment link) in parent window to open a new window. I add a comment and click close button to switch back to parent window</p>
  
  <p>After clicking on close button I am getting following exception</p>
  
  <p>Caused by: org.openqa.selenium.remote.ErrorHandler$UnknownServerException: Window not found. The browser window may have been closed.
  Build info: version: '2.39.0', revision: '14fa800511cc5d66d426e08b0b2ab926c7ed7398', time: '2013-12-16 13:18:38'
  System info: host: 'INLN50866593A', ip: '10.52.27.72', os.name: 'Windows 8.1', os.arch: 'amd64', os.version: '6.3', java.version: '1.7.0_55'
  Driver info: driver.version: unknown</p>
  
  <p>I have written following code to switch window to child window</p>
  
  <pre><code>public void switchWindow() {
          for (final String s : HtmlAutomationHelper.getWindowHandles())
              HtmlAutomationHelper.switchToWindow(s);
          SynchronizationHelper.pause(3000);
      }
  </code></pre>
  
  <p>After switching the window I add a comment click close button</p>
  
  <p>But as soon as I click close button I get nosuchwindowexception</p>