Add documentation on shutdown and cleanup