JAVA-767

do a precheck on the connection to ensure that the port is not broken