Bug 865057: wait for one window to close before closing the next

Also providing more information about test-windows:testTrackWindows