use TCPSocket when checking if port is open for sandbox processes

Signed-off-by: dmitriy kalinin <dmitriy@pivotallabs.com>