fixed retcode when error in vm-run.