Make #publish handle transient connection errors.