close open ports if test fails