Change exception to logged error