bugfix : close tcp connection in checkopenport
bugfix checkopenport