### Cleaning Up Code When the Server Terminates

If (or when) the server terminates execution, it should undo its initialization that affected other facilities and services of DCE. Facilities affected include the CDS namespace, the endpoint mapper service, and backing store databases such as those used for ACL managers. For the most part, API routines that cause these kinds of effects have a corresponding API routine to undo them. The following topics describe the series of routines typically used to clean up after an application.

More:

Unregistering the Server

Unexporting from the Namespace

Cleaning Up Security Information

####