Actually close main window with empty item array