commons-io has a silent close that's handy here as well