Provide framework for auto initialise/deinitialise of the library