Right now, there is very little error handling and recovery that is done by the Aphlict client/master. T5281 is related and probably achieves most of what we need here (being able to //detect// connection problems), but it would be great to also provide a reasonable level of automated error recovery where possible (i.e. when we detect a connection failure/degradation, try to reconnect).