Refactored to use Logger on exceptions.