parent waits for children to quit