Remove unused logger.
Ignore warnings about empty catch.