If your dog acts inappropriately when someone gets ready to leave the house, you need to correct his behavior proactively instead of reactively. Teach the dog to do something else while people are walking out the door. For example, make him sit and remain calm. Use treats and teach him gradually. Build it up by having a person go towards the door and then back again. Then ask that person to open the door. Immediately reprimand the dog if he barks, and reward him for staying quiet. Reinforce each small step with praise and a treat. Eventually the person will be able to leave through the door without your dog barking, growling, or jumping.
Find more tips at Purina.com/dogs