Why does gas water heater blows out?
check vent cap and that the closet does not “seal”, smothering the pilot,
.
then check that the pilot is a good size when on, if not adjust it.
.
if that dont work try replacing the thermocouple, it i