Analytics connection closes properly now