I feel like it was a risk to your animals, and it is not worth the chance of something hsppenning to them.
I would not ever leave my animals in the car alone. I see people doing it all the time, and have heard the dog's cries. It is a risk that I would never take.