Refactor to use the SafeExecutionContext, changed the Microsoft.mshtml assembly reference to copy to the local folder.