Remove state print and add debugging print to socket connect