Fix quality flaws; log caught error.