Add virtual destructor to the base Event class.