Redid the shutdownhook
Mixing Java, Groovy and Scala for a test