Make reconnect work after client restart