close the barn door after the horse has bolted

From Wiktionary, the free dictionary