Only close the window if it was a file window, folder project windows should persist