Try to warn if connection is broken during search.

Change-Id: Id079cafa45fad89d24e2388616abbe039d091b5d