A small fix to torture.c to cleanup the error handling and prevent crashes.