Call closeConnection instead of CloseData