master should wait for child to quit