-h for outfile fixed, raise exception on failure in exporter to log class catches it