Fix LOG.error() usage to actually log the exception.