Closing resources correctly.

Hi Adam,

I realized that InputStream is not closed correctly in getProperties() method. This leads to errors on iOS using roboVM.

BR
Dino