Shut the door on (something)

To terminate/exclude/obstruct something.

The bad behavior of the employees shut the door on any future parties at the company.