Add finalize to adaptor base class.