Could be a number of silly things couldnt it?...on/off switch playing silly buggers..i had that happen on my Storm and worked it on and off a couple of times and cleared it..might have a bit of moisture in there causing corrosion or contact??...blow in there with air gun and also the clutch switchy thing...might help??
I had that happen several times with my first 2013. It was new and there was a post about this happening. It happened about 3 or 4 times as I recall, but seemed to resolve itself after around 500 miles. It never did it again. Magic...maybe that will happen for you as well.
Cleaned linkage and stepper motor with WD40. Run about 1/3 tank of redline fuel cleaner through system. Test rode today and could NOT duplicate stalling when coming to stop when engaging clutch. Think the idle is still a little low with clutch engaged, but no stalling or requirement to use throttle to keep engine running, to date? Will run rest of redline through system and test ride again.