Logging, "graceful" shutdown