Enable connect again with a new socket.
Disconnect old socket on new connect()
Remove extra indentation.
One more comment.