NR_ShutdownRegistry();
nsRegistry::~nsRegistry() {    if( mReg ) {        Close();    }#ifdef EXTRA_THREADSAFE    if (mregLock) {        PR_DestroyLock(mregLock);    }#endif    NR_ShutdownRegistry();    return;}