Binding development question reestablish connection

I am working on a binding for which the bridge handler can lose its connection to the external device. Is there a reference binding someone could suggest which has proper retry logic in it to reestablish its connection?

thanks,
Craig