Fixed bug in waiting for finished vmadm commands.
Added a better handling of vmadm errors for create and update.