But it' the only way I know to implement destructor in Java