If you have opened many levels of folders, you can close a folder and all of its parent folders by pressing and holding down either SHIFT key while you click the Close button in the upper right corner of the folder's window.