Once, way back in the mists of time, my now-husband pulled this stunt. We were meant to be going to a family event and he buggered off to the pub "just for a couple" then did a disappearing act for hours.
I looked a right nob trying to explain away his absence and trying to comfort my best mate whose own partner was obviously MIA with him
They both rolled up pissed, when all the food was ruined etc.
I gave him the absolute nuclear treatment. Made it clear this was the first and last time he would do this to me. The next day, he apologised and meant it. There has been no repeat in over 20 years, or at least he has told me when he is going off-plan which is all I expected of him.
Unfortunately, I can't say the same for the other couple. He continued being a dick, making a fool of her and turned out to be an arsehole.
You have a cross roads here, love and you are more in control of it than you think
You can't change his behaviour but you can choose how you respond to it. Give him his warning if you wish but you have to mean it, and he has to know that you mean it. If you simply get more "stop nagging" type responses, then you know what you have to do.