Reimplement auto_reconnect and connection init