Considering following lines in process function:
```
282     if not vm_first:
283         _call_image_func()
284 
285     _call_vm_func()
286 
287     if vm_first:
288         _call_image_func()
```
Looks your code needs to restart the vms after the update action is done in some situation (vm_first is True).