code: public void onWindowClosed(Integer id) {
      services.onWindowClosed(id);
      services.getWindowManager().removeWindow(id);
      services.getDebugger().cleanUpRuntimes(id);
    }
docs: Handles windows that have been closed.  Removes it from the list and removes the runtimes that
  are associated with it.