It could be a weak flame so any sort of air back flow might be putting it out. Maybe it's an intermittent pilot though. I don't know of too many set ups like that. Could be a bad thermocouple. Maybe bad heat exchanger. I really can't say for sure without being there and running some tests.