Objects States Not Clear After Closing Window
===

I've following code :

        private void ShowOfflineIMs(bool hasOffline)
        {
            if (hasOffline)
            {
                _offlineDisplayerThread = new Thread(OpenOfflineWindow);
                _offlineDisplayerThread.SetApartmentState(ApartmentState.STA);
                _offlineDisplayerThread.Start();
            }
        }

        private void OpenOfflineWindow()
        {
            var offlineWindow = new OfflineWindow();
            offlineWindow.Closed += (sender, args) => Dispatcher.ExitAllFrames();
            offlineWindow.Show();
            Dispatcher.Run();
        }

After I close the form objects hold their states. How can I solve this problem.

Thanks in Advance.
