Auto reconnect server while server close socket