Adding try-catch to all Invoke-WebRequest.