If you have many windows open, and you want to close all but one, select File > Close Multiple and select the windows.