Make iopvars_gen fail in case of error
Merge pull request #22 from lucafavatella/halt-error

Make iopvars_gen fail in case of error