Fixing issue #38 with safer multithreading and better threaded web service client handling.