Need to reverse the close order to prevent crashing with NavigationWindow