Implementing auto-reconnect system