Fixed logging failure on slave after store copy

PR fixes broken logging on slave after store copy on first startup. After store being copied slave turns on embedded database to perform recovery, this database use static logger context and close all it's appenders on shutdown.