wait until instances completed