[optimization]: added virtual destructors