scpi_vxi: ensure the vxi link was properly opened before closing it