Dunston's reaction is BEST explained as involving "stranger" anxiety.
It can happen regardless of whether the child is with a parental figure or someone else they trust. It crests from 6 to a year yet may repeat subsequently until the age of two years. As a kid gets more seasoned, more peculiar tension can be an issue as they mingle. children may end up reluctant to play with new kids.