Print all logger messages on shutdown