SOLIDWORKS controls when add-ins can do work. An add-in is unable to do any real work within the PropertyManager2Handler9::OnClose handler because the PropertyManager page and command are closing. So, typically the IPropertyPage2Handler9::AfterClose handler is called after IPropertyManager2Handler9::OnClose to allow an add-in to do work. However: