Added reconnection logic. For now data to disconnected servers is lost