Er, the "try" and "finally" were added. The "es.indices.put_settings..." line was just moved.