Fixing FileInputStream resource leak.

`fis` isn't being referenced. Instead there is another `FileInputStream` opening and reading the file which is causing a resource leak.

Fixing by reading form `fis`, which is closed in the finally scope.