This command closes all images you have opened. The main window remaining empty is that corresponding to the last opened image.
You can access this command from the image menubar through File → Close All,
or by using the keyboard shortcut Shift+Ctrl+W.