added SPI extension point for global initialization and cleanup