To bring to an end, and to shut. Also nearness — the same word for ending a thing and for being beside it.
Old French clos, from Latin claudere (to close, to shut); the nearness sense grows from the idea of a gap being shut down to almost nothing.
To bring to an end, and to shut — also nearness itself, one word serving both an ending and a proximity.