address condition where m_RecentErlangPtr could be NULL during shutdown.