Remove unnecessary logger and exception.