Fixing terminate condition for VM build task.