Fix reconnect on connection timeout