fix VS crash on domain server restart