I assume you checked the generator light panel when it shut down to see if any of the warning lights illuminated. It will shut down for over temp, low oil pressure, overvoltage and under voltage and, I think, under frequency. All of these shut down by closing the fuel valve. If possible, try...