little refactoring
Adding logger shutdown capability.