Punishment isn't effective for treating separation anxiety and can make the situation worse. Another dog. Getting your dog a companion usually doesn't help an anxious dog because their anxiety is the result of their separation from you, not just the result of being alone. Crating.