wait for close all