I can't tell how this ended up being fixed, but I think it's generally a little dirty to use [finalizers](http://stackoverflow.com/questions/2506488/java-finalize-method-call).  There's probably a better way to do it, maybe by using [scala-arm](https://github.com/jsuereth/scala-arm) or something like that.