If it turns out not to be what Gaspipe mentioned you might check the choke cable. mine got hung up on somthing so that it'd die abruptly when the bars turned full lock. do your lights shut off or just the motor?
Officially motor free
7 cycles with pedals