Better opto write reconnect handling