- Removed the Finally statement. Using finally caused a null refence exception for the CCriticalSection object at shutdown.