added server disconnect error and auto reconnect