Compact command will wait for compaction to end
added nlog
added logging to few places