You can handle the Stopping event to delay the shutdown of an instance (in soft shutdown mode). In a failure situation, you cannot prevent a stop ...
Here is a mitigation suggestion. Let them say that your task is managed in a queue. Let it pretend your message looks something like this PROCESSWIDGET|123.
. . , , , 4 , , 15 . , . , PROCESSWIDGET|123|STEP2.
... - , VM - . , , . , Blob ( - ), , , .
UpdateMessage() . MSDN.