reconnect on lost connection during export