using multi try

Replace the identical cath to use the multi-try, resource that was born in Java 7.