added multithreaded torture test. revamped shutdown. This was SVN commit r2173.
This was SVN commit r2126.