attempt to make shutdown mo graceful
assign logger
add logging class dedicated to logging
make logger configurable and add logging to pub/sub sides
Merge branch 'logging'