shut the door on
shut the door (up)on someone or somethingand close the door on someone or something ; close the door to someone or something
1. Lit. to close a door, preventing someone or something from passing through. (Upon is formal and less commonly used than on.) They shut the door upon me, and I couldn't get in! We quickly closed the door on the smoke.
2. Fig. to eliminate an opportunity for someone or something. The board of directors shut the door on me, and there was no further opportunity for me to pursue. They closed the door on further discussions.