public void shutdown() { if(_shutdown.CompareAndSet(false, true)) { foreach(SessionState ss in sessions.Values) { ss.shutdown(); } } }