* Register a listener for window closing so that we can
* drop the reference to the closed window and let the
* garbage collector claim it.
*/
if (addListener && (slotWindow != null)) {
slotWindow.addCloseListener(new CloseListener() {
public void windowClosed(InternalWindow window) {
slotWindow = null;
}
});
}