Sleep a little while reconnecting.

As this code is called in a forever loop, it should try and be somewhat
polite to any other OS tasks.  At present, with tcp connections to localhost,
and presumably rtu connections to a local serial port, this is a CPU hog if
the remote port is not listening.