private static S3Exception NewS3Exception(IOException ioException) { if (ioException.InnerException is ThreadAbortException) { throw ioException.InnerException; } return new S3Exception(ioException.ToString(), ioException); }