The following code does not close the windows
Java Code:
WebClient.closeAllWindows();
JOptionPane.showMessageDialog(null, webClient.getWebWindows().size()); //  it returns  1
what is wrong