Change resource handling to try-with-resources