Click on the All button to close all the libraries in the current library list, regardless of whether or not they have been currently selected.