fixed destructor ordering problem by adding a RecBackend::Deleter class