Handle url-queue-retrieve errors

Add error handler for `url-queue-retrieve`.