public static void ShutDown() { if (IsShellInitialized) { RunWithWriteLock(() => { TestShell shell = Shell.Instance as TestShell; if (shell != null) { shell.TearDown(); shell.Dispose(); } }); } }