Convert try to try-with-resource to silence Eclipse warning Change-Id: I49c1add7e3510b9c3ca64dd304a7dd97868d6dba