Is it when it's cold, or when you run it for a while? Have you changed you spark plugs? Are you choking it long enough if it's cold? You could try cleaning the dess post and cap too, it might be dirty and loosing connection, and shutting down. Do you always get 2 beeps before it starts? If not, it could be an indication of a dirty dess lanyard and cap.
Karl