Add virtual destructor to base class.