Logging errors instead of diying