Fix all of the virtual destructors, as they cause potential memory leaks