better shutdown logging