added shutdownHandler for module shutdown callback