For try-with-resources, using simplified distinct close code for try body and catch clause, to avoid creating multiple copies of the full finally code. Reviewed-by: mcimadamore