wait until pool closes