Static analysis

This is a first batch of things a static analysis tool found. These are failures to close files and streams.
I don't understand this - why are we throwing when one doesn't work if we have more URLs to try?