This rather long worded idiom is not as difficult as it seems. Probably, the word, 'bolted' is unfamiliar. This means run away.
So in fact, it's very straightforward. There is no point taking action that is useless after an event has occured.
EG The horse has gone but we close the doors to stop him escaping. It's too late!