Working one time

Can run the code one time, next run you cannot connect to the client
again