update connection close