add explicit exit of parent