Use try with resources for context.