change some logging
add shutdown operation