Adding automatic retry on Disconnect

Connection attempts happen in main thread, so GUI locks