Added support for shutdown of the Kiara library.