In a corner you'd have little choice but to stand it up and try to bring it to as abrupt a halt as possible, unless you think you could finish the corner coasting; if the engine died, pulling in the clutch and standing it up as it slowed would be one possibility.
As for causes, I had a similar issue with my first bike just before I crashed it. I had cleaned the carbs pretty thoroughly and didn't seem to resolve the issue. It could be that your fuel tank's vacuum breaker is clogged and after riding it a while the vacuum in the tank is preventing fuel flow. Does it start up now and only die when its well-warmed?
Dragging knee is for the track, and dragging tail is for the lot. --Kane Friesen
When you're in a car, you're watching a movie; when you're on a bike, you're in the movie. --Robert Pirsig
Identity theft is not Fun