client: Attempt connection a few times

Signed-off-by: Jonathan Rudenberg <jonathan@titanous.com> (github: titanous)