Fix urlRetrieve error handler