local logger, catch more exceptions.