You should get a fair warning in advance of things going from bad to worse as well. At least on my bike and I suspect most EFI models the first thing that will happen is that the control logic will lower the idle speed. Then if you still keep it standing with the engine running there will be empty cycles introduced where the engine will not inject any fuel which will sound like a misfire, this is intended to give the engine a chance to cool down a bit more..
You won't miss that clue.. thrust me..
Take care,