Made some destructors virtual