ICommand is in System.dll for the 4.5 version of the .NET framework.
Clean the domain tls var on all code paths in thread_cleanup ().