I know two reasons it will shut off: gas tank is at 1/4 full or less or generator oil level is too low. There have been other discussions on the forum about problems running the Onan 2800. Perhaps a search will help you. I'm sure others will chime in eventually.
Barbara, Florence, Rascal (bad chihuahua), and Annabelle (good girl turning bad)
Rainbow Bridge: Magoo (baddest chihuahua)
2007 Pleasure-Way Ford Excel TD: Miss Daisy