My Mother had a cat (Bear) that would unlatch the screen door on the porch to let himself out ... never would lock it when he came back in though.
I taught my dog to close the door after himself when he comes in during cold weather. He stands up on his hind legs to press against it and can slam it pretty hard.
Several months ago we got another dog, a rescue beagle bitch. He hates her. I think he's jealous. He has never tried to bite her, but his disgust for her is obvious. Now when they come in from outside he deliberately slams the door in her face as she tries to follow him in. He fights me to keep the door shut, standing on his hind legs and leaning against the door as I try to open it for her. If I let the pressure up he'll slam it again, sometimes right on her. And he's enjoying every minute of this.