How to reproduce: check the attached project Workaround: manually unload the document before disposing the control, the attached project includes a solution