Put the (tin) lid on something/things British old-fashioned informal verb phrase
Put an end to a bad experience or situation in an especially negative way, usually a series of unpleasant events
I argued with my wife this morning and failing in negotiating with my customer put the tin lid on my bad day.
To put the tin lid on this disagreement, she decided to withdraw from the project.