Wipe Java objects when we move them into rust (only for features)