Use try with resources construct