shut the door on

shut the door (up)on someone or something

 and 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.
See also: door, on, shut
References in classic literature ?
The abrupt change of subject shut the door on any further confidences.
Maybe they would also shut the door on Soledad O'Brien for being biracial, but she isn't wearing a mask to cover herself.