[DF-291] Fix problem with protected destructors