Correction of the SIGSEV bugs due to the destructor of the singleton object.