Added checks to detect disposed tox instances