It has been changed so that status is VMI_FAILURE all the way and only gets set to VMI_SUCCESS at the very end before return. Every other time if a fail is encountered, it does a goto error_exit;