Destroy singleton instance in destructor of modules.