Fix a bug in VM allocation (OMS-389)
Fix finalize_vm calling only when deployment succeeds + cleanup (OMS-349)