if got a error, just reconnect to server