Added sleep between TCP connection and handshake