Fixed bug with Log::shutdown