reconnect if tcp error