Propagate Pidof error as a return value so callers don't get killed