Proper use of try-with-resources. Change-Id: I1168293af1edd746ad21f94cfb981c7b10c87d1d Reviewed-on: https://git.eclipse.org/r/c/platform/eclipse.platform.images/+/190612 Tested-by: Alexander Kurtakov <akurtako@redhat.com> Reviewed-by: Alexander Kurtakov <akurtako@redhat.com>