Improve VTGate reconnection logic.

@alainjobart @sougou 

It refreshes endpoints before every connection.