fix reconnect

Fix reconnect errors

Reconnect is still disabled be default, need to add option
to enable it.

Issue: 398508

Change-Id: Ib5a7b6ea635eede1ac7f6375c9b52e797ea9bd10
Signed-off-by: Shlomo Pongratz <shlomop@mellanox.com>