Using try-with-resources for never closed stream

I think you forgot to close some stream