Add timeout to discovery phase.