trq-2167 Set rc to the correct errno and return it on a fail in pbs_original_connect