Fix bug with AutoFac when AppDomain is recycled.