AF #31, departing IAH at 9:55 p.m., could be a contingency plan if things go south, but even though it is a SkyTeam partner flight, there are no guarantees that CO will accommodate you on it if you misconnect or that space will be available on the day of departure.
I echo the unanimous opinion that a 40 minute domestic-to-international connection to the last CO flight of the day to the destination is a perilous endeavor.