I've had a couple of 'em. It's good to carry a spare tube, tire irons, and a pump. But, in the dark, it would be hard for anybody to repair a flat.
Did you figure out what caused it?
-- puncture
-- Snake bite / pinch flat
-- Bad valve
-- Gremlins
There are ways to avoid or minimize the risk of all of those except Gremlins. They'll getcha every time.