cleanup try with resources