sim: Call freeargv() when failure occurs