DDF-699  wrap and rethrow retrieveResource() exceptions as ResourceNotFoundException to handle ConnectionTimedOut exceptions
DDF-699  fixed comment
DDF-699  re-added the synchronized shutdownNow() code to handle case of retries not being done if connection re-established while retry in progress
DDF-699  re-added synchronized block around writing to output streams