Catch errors when performing an AWS lookup.