statistics: add shutdown counter, fix ServerContext::ChildInit()