Using regular resource management instead of try with resources.