waiting for currentChildren shutdown before closing listener