
Close, etc. the barn door after the horse has escaped
Timing Matters
The phrase emphasizes the importance of taking action before it's too late. 
Futile Efforts
Use when someone's efforts are pointless because the problem already happened. 
Preventative Caution
It suggests that preventative measures are more effective than fixes afterwards. 