Use Java7 try auto-close thingy