recover from delete disaster.
Rename CriticalSection to MutexWrapper (after much vacillating).

Unit tests for timeout.