Add sleep() so that TCP connections are released (JAVA-466)