cleanup imports
Avoid debug Exception generation if DEBUG log level disabled