Missed FileReader close
Remove unused imports
Add tryClose() utility method