error handling of HAR parsing errors and  non-zero exit codes

added error handling of HAR parsing errors;
added status non-zero exit codes for errors cases.