Try the Materials Informatics Toolkit, which is designed to easily handle SMILES data. This and other helpful add-ins are available in the JMP® Marketplace
For scripting @jthi s answer applies, and interactively you can go to the home window, select all windows in the window list (Crtl-A), and in context menu (right mouse click) you can close them all.