Adding socket reconnect.