[MOD] General: using try-with-resources statements