@Override protected void finalize() throws Throwable { super.finalize(); if (!closed) { log.warn(this + " not closed properly"); close(); } }