API code to shutdown and/or restart SolidWorks?

I have a custom addin that generates a dynamic pull-down menu.   When the menu changes, SolidWorks needs to be restarted so the registry values get updated.    Is there a way to programmatically shutdown and/or restart SolidWorks via the API?

SolidworksApi macros