update analytics to use new Kazuki API and try-with-resources in Java, boring try/finally in groovy