$session->quit( )

The quit() function is an alias for shutdown(). The section “shutdown” on page 104 provides additional information.

The quit() function closes down the Domain Manager cleanly, saving the configured parts of the repository to disk.