Made destructors virtual.