GROOVY-7186: Close URLConnection getInputStream() after testing for availability
Merge pull request #546 from armsargis/GROOVY-7186-FIXED

GROOVY-7186: Close URLConnection getInputStream() after testing for availability