Issue occurred when trying to close the unpinned window from the taskbar. There is a background call that occurs that tries to close the window twice. This is valid when you right-click the unpinned window and select hide, as this causes a deactivate to occur before the close window gets called. This has been resolved and logging has been added to catch this exception and show as information that the exception is handled in the background.

Ran the coded ui tests around the area where the code was removed from. Found and resolved a bug that was picked up on the coded ui when trying to run the Rull All Tests and then opening the Tests view. All coded ui tests around this area are passing.