fix test by disposing hanging AppHost