#3897 open/close stream to ensure URLConnection frees up file pointer