Be cold and distant but do NOT let them out. You are giving positive reinforcement to the good behavior, and negative reinforcement to the bad. Keep going from here, lengthening the time you're out of the room, briefly opening and closing the front door, etc. Eventually work up to leaving the house for a few minutes, then for gradually longer periods. Give treats and a very big happy hello when you return and release your dog.
Repetition is the key.
Important Tips Leaving the crate door open when not in use and having treats in the crate will speed up your efforts. This is to be your dog's security. Never throw your dog into the crate because you're angry and want them out of the way. Then they only learn that going in the crate means you're angry at them. When you use any crate, be sure to remove your dog's collar while in the crate to avoid getting caught on the wires or screws.