Virtual destructors to prevent huge memory leaks.