To close a window, use the CLOSE= option in the WINDOW statement. In the example given earlier, you closed MAILLIST with the following statement:
window close=maillist;