Your dog is not behaving our of spite. One of the common misconceptions about separation anxiety is that the dog is intentionally exhibiting the behaviours as it is resentful that you have left them. Unlike humans, dogs do not have the cognitive ability to behave out of spite. They are behaving this way because they are panicking.