Make a parent class destructor virtual.