libfetch: Fix failure to return to caller on error