When executing Async requests on multiple threads with 1 restclient, there is sometimes an exception

Fix for issue #368