Handle errors in get_loans from ia.