Can you paste the full error stack here? From that short snippet, it looks like the URL/Server is closing the connection on Ignition's HTTP Client request?
How often does this issue occur? Everyday? Once a week?
The script will automatically release the resource when the script is completed.
The error you just attached is different than the one in your original post.
javax.net.ssl.SSLHandshakeException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
It implies you're connecting to a server via HTTPS which has a certificate that is not trusted.
The original error was the connection being closed by something external to Ignition. Other side, firewall, etc...