wait for locations to close in CloseAllLocations